#include "RayTracePlugin.h"
#include <SERayTracePlugin/RayTraceRenderPass.h>

namespace SEngine
{
    
    RayTracePlugin::RayTracePlugin(Renderer &renderer)
        : RenderPipline(renderer)
    {
    }

    void RayTracePlugin::Init()
    {
        this->NextPass<RayTraceRenderPass>();
    }

    void RayTracePlugin::Deinit()
    {
        this->Reset();
    }

    IPlugin *CreatePlugin(void* args)
    {
        return new RayTracePlugin(*(Renderer*)args);
    }

    void DestroyPlugin(IPlugin *plugin)
    {
        delete plugin;
    }
    
} // namespace SEngine
